package 优先级队列;

public class Test {
    public static void main(String[] args) {
        PriorityQueue priorityQueue = new PriorityQueue();
        int array[] = {27,15,19,18,28,34,65,49,25,37};

        priorityQueue.createHeap(array);

        System.out.println(priorityQueue.peekHeap());

        priorityQueue.pollHeap();

        System.out.println(priorityQueue.peekHeap());

        priorityQueue.push(80);

        System.out.println(priorityQueue.peekHeap());
    }
}
